<?php

namespace App\Library\Requests\User;

use App\Library\Requests\Base\BaseDTORequest;
use App\Library\Rules\MediaImgRule;

class UserEditRequest extends BaseDTORequest
{
    public function rules(): array
    {
        return [
            'nickname' => 'nullable|string|max:100',
            'address' => 'nullable|string|max:100',
            'note' => 'nullable|string|max:200',
            'fileId' => ['nullable', 'string', 'size:20', 'regex:' . __('com.numReg'), new MediaImgRule],
        ];
    }
}
